<template>
	<view >
		<uni-steps :options="bidding ? list1 : list2" :active="active" />
	</view>
</template>

<script>
	export default {
		name: 'OverhaulStep',
		props: {
			bidding: Boolean,
			active: Number
		},
		onLoad:function(e){
			if(!this.bidding) {
				if(this.active > 1) {
					this.active = this.active - 1
				}
			}
		},
		data () {
			return {
				list1: [
					{
						title: '申报',
					}, {
						title: '竞价'
					}, {
						title: '认定'
					}, {
						title: '确认'
					}, {
						title: '处理'
					}, {
						title: '验收'
					}
				],
				list2: [
					{
						title: '申报',
					}, {
						title: '认定'
					}, {
						title: '确认'
					}, {
						title: '处理'
					}, {
						title: '验收'
					}
				]
			}
		}
	}
</script>

<style>
</style>
